$OpenBSD: patch-lib_mhamain_pl,v 1.3 2017/03/02 09:47:40 sthen Exp $
--- lib/mhamain.pl.orig	Thu Mar  2 09:38:22 2017
+++ lib/mhamain.pl	Thu Mar  2 09:38:33 2017
@@ -1562,7 +1562,7 @@ sub signal_catch {
 ##
 sub defineIndex2MsgId {
     no warnings qw(deprecated);
-    if (!defined(%Index2MsgId)) {
+    if (!%Index2MsgId) {
 	foreach (keys %MsgId) {
 	    $Index2MsgId{$MsgId{$_}} = $_;
 	}
